package com.letou.ls.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

/**
 * Created by tengxp on 16/3/18.
 */
public class MLinearLayout extends LinearLayout {
    private int wSpec;
    private int hSpec;


    public MLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);

        wSpec = widthMeasureSpec;
        hSpec = heightMeasureSpec;
    }

    public void reMeasure() {
        onMeasure(wSpec, hSpec);
    }
}
